{if $category} <a href="admin/modules/tangra_cms/category/category_content.php?category={$category->get_id()}" class="action_back">Back to category &quot;{$category->get_title()}&quot;</a> {else} <a href="admin/modules/tangra_cms/vpage/vpages.php" class="action_back">Back to virtual pages</a> {/if} <br />
<br />
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="info_page_main_table">    
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Path<img src="/img/modules/tangra_cms/help_tip.gif" alt="" {popup text="Path of the VPage. You can change path only when vpage is offline."} style="border: 0px none ; vertical-align: top; margin-top: 2px; margin-right: 4px; margin-left:4px;"/></td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="left">{$vpage->get_path()}<br /> (<a href="http://{$_current_host}/{$vpage->get_path()}" target="_blank">http://{$_current_host}/{$vpage->get_path()}</a>)</td>
                                <td class="info_page_link_cell" align="center" width="160">
                                    {if !$vpage->get_online()}
                                        {if $vpage->get_sys_generated()}
                                        <span style="padding:4px;">System generated page.<br />Can't edit</span>
                                        {else}
                                        <a href="admin/modules/tangra_cms/vpage/vpage_edit.php?vpage_obj_id={$vpage->get_id()}&amp;_transit_return_to=admin/modules/tangra_cms/vpt/news_list/vpage_man_news_list.php" class="action_edit">Edit</a>
                                        {/if}
                                    {else}
                                        {if $vpage->get_sys_generated()}                        
                                        <span style="padding:4px;">System generated page.<br />Can't edit</span>
                                        {else}                            
                                        <span style="padding:4px;">Switch to offline to be able to edit</span>
                                        {/if}
                                    {/if}
                                </td>                                
                            </tr>
                        </table>
                    </td>                        
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br />
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="info_page_main_table">    
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Status</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="left" width="250">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                        <tr>
                                            <td width="48" height="48">{if $vpage->get_online()}<a href="http://{$_current_host}/{$vpage->get_path()}" target="_blank" {popup text="Click to go to this page (new window)"}><img src="/img/modules/tangra_cms/online.png" alt="page is online" width="48" height="48" border="0" /></a>{else}<img src="/img/modules/tangra_cms/offline.png" alt="page is offline" width="48" height="48" />{/if}</td>
                                            <td valign="middle" width="100"><span style="font-size:130%; font-weight:bold;">{if $vpage->get_online()}Online{else}Offline{/if}</span></td>
                                            <td> {if $vpage->get_online()} <a href="/admin/modules/tangra_cms/vpt/news_list/vpage_man_news_list.php?manage={$vpage->get_id()}&amp;online=0">Switch to offline</a>{if $items_linking_to_vpage_count}<br />
                                                (<span class="status_warning">WARNING: There are menu items linked to this virtual page. If you switch this page to offline published menu items will stop working!</span>){/if}
                                                {else}
                                                {if $can_go_online} <a href="/admin/modules/tangra_cms/vpt/news_list/vpage_man_news_list.php?manage={$vpage->get_id()}&amp;online=1">Switch to online</a> {else} <span class="status_error"> You must select category in order to be able to switch to online. </span> {/if}
                                                {/if} </td>
                                            <td width="80">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center"><a href="modules/tangra_cms/tangra_cms.php?vpage={$vpage->get_id()}&amp;previewcode={$_tcms_preview_code}" target="_blank"><img src="/img/modules/tangra_cms/preview.png" alt="preview" width="32" height="32" border="0"/></a></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center"><a href="modules/tangra_cms/tangra_cms.php?vpage={$vpage->get_id()}&amp;previewcode={$_tcms_preview_code}" target="_blank">Preview</a></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br />
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="info_page_main_table">
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="0">
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                                        <tr>
                                            <td class="info_page_label_cell" width="200">&nbsp;<strong>Category HID</strong><img src="/img/modules/tangra_cms/help_tip_black.gif" alt="" {popup text="HID of the category where news pages will be load from "} style="border: 0px none ; vertical-align: top; margin-top: 2px; margin-right: 4px; margin-left:4px;"/></td>
                                            <td class="info_page_content_cell">
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4">
                                                    <tr>
                                                        <td align="left">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                                                <tr>
                                                                    <td>{if $category_sel && $category_sel->get_title()}<span class="vpage_manage_page_title">{$category_sel->get_title()|escape:"htmlall":"utf-8"}</span>{else}<span class="status_error">Not set. You must select category.</span>{/if}</td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                                        <tr>
                                            <td class="info_page_label_cell" width="200">&nbsp;Items per page<img src="/img/modules/tangra_cms/help_tip_black.gif" alt="" {popup text="How many news items will be shown on this page"} style="border: 0px none ; vertical-align: top; margin-top: 2px; margin-right: 4px; margin-left:4px;"/></td>
                                            <td class="info_page_content_cell">
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4">
                                                    <tr>
                                                        <td align="left">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                                                <tr>
                                                                    <td>{if $items_per_page && $items_per_page->get_value()}{$items_per_page->get_value()|escape:"htmlall":"utf-8"}{else}<span class="no_value">Not set. Template's default value will be used ({$default_items_per_page}).</span>{/if}</td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>                            
                        </table>
                    </td>
                    <td class="info_page_link_cell" align="center" width="160" valign="middle">
						<a href="admin/modules/tangra_cms/vpt/news_list/vpage_edit_news_list.php?vpage_obj_id={$vpage->get_id()}" class="action_edit">Edit</a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br />
<a href="admin/modules/tangra_cms/vpage/vpage_manage.php?manage={$vpage->get_id()}" class="action_advanced_vpage_management">Advanced VPage management</a>                             